package com.lq.memo;

import com.lq.memo.annotation.EnableRedis;
import com.lq.memo.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

//@SpringBootApplication
//@Configuration
//@ComponentScan(basePackages = {"com.lq.email", "com.lq.memo"})
@SpringBootApplication(scanBasePackages={"com.lq.email", "com.lq.memo"})
//@EnableBeanConfig
@EnableRedis
public class MemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemoApplication.class, args);
    }

    @Bean
    public IdWorker getBean() throws IllegalAccessException {
        return new IdWorker(1, 1);
    }
}
